﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    
    <SolidColorBrush x:Key="MainBackgroundBrush" Color="LightCoral" />
	<SolidColorBrush x:Key="MainControlBackgroundBrush" Color="White" />
	<SolidColorBrush x:Key="MainControlShadowBrush" Color="#FFADA4A4" />
	<SolidColorBrush x:Key="MainControlTitleBrush" Color="#FF00C7FF" />


    <!-- Past Events -->

    <DataTemplate x:Key="DataTemplatePastEvent">
        <StackPanel Width="350">
            <TextBlock Text="{Binding TopicTitle}" TextWrapping="Wrap" FontWeight="Bold" HorizontalAlignment="Left" FontSize="12"  />
            <TextBlock Text="{Binding TopicDescription}" TextWrapping="Wrap"   HorizontalAlignment="Left" />
            <TextBlock Text="{Binding When}"  />
            <Rectangle Fill="#FF0044FF" Height="2" Width="350" HorizontalAlignment="Left" Margin="0,10,0,10" />
        </StackPanel>
    </DataTemplate>

<!-- Latest Events -->

    <DataTemplate x:Key="DataTemplateLatestEventStyle1">
        <Border CornerRadius="10" Padding="10" BorderThickness="1" Background="White" Height="350" Width="450">
    		<StackPanel Background="White" Width="440" Margin="-7,0,-5,0">                
                <Border Height="30" Margin="0" BorderBrush="Black" BorderThickness="0,0,0,1" HorizontalAlignment="Left" Width="425">
    				<Border x:Name="borderTitle" d:LayoutOverrides="Height" BorderBrush="#FF0F78CE" BorderThickness="0,0,0,2" HorizontalAlignment="Left">
    					<StackPanel x:Name="stackPanelTitle" Orientation="Horizontal" HorizontalAlignment="Left">
    						<TextBlock FontSize="16" Foreground="#FF174B9A" Text="Next Event:" TextWrapping="Wrap" FontWeight="Bold"/>
    						<TextBlock x:Name="textBlockTopicTitle" Text="{Binding TopicTitle}" FontSize="16" Foreground="#FF3B4796" Height="29" Margin="5,0,0,0" Width="350" />
    					</StackPanel>
    				</Border>
    			</Border>
    			<StackPanel x:Name="stackPanelDetails" Orientation="Horizontal" >
    				<TextBlock x:Name="textBlockTopicDescription" Text="{Binding TopicDescription}" TextWrapping="Wrap" FontSize="12" Width="225" Height="225" VerticalAlignment="Top" Margin="0,5,0,0" />
    				<StackPanel x:Name="stackPanelLocation" Margin="20,0,0,0" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" >
                        <StackPanel Orientation="Horizontal">
                            <TextBlock x:Name="textBoxWhen"   FontSize="18.667" Foreground="#FF4B550C" Text="When:" TextWrapping="Wrap"/>
    					    <TextBlock x:Name="textBlockDateTime" Text="{ Binding When, Mode=OneWay }" HorizontalAlignment="Left"  FontSize="10" Foreground="#FF4B550C"  TextWrapping="Wrap" Height="20"/>
    					</StackPanel>
                        <TextBlock x:Name="textBoxWhere"  HorizontalAlignment="Left"  Width="106" FontSize="18.667" Foreground="#FF4B550C" Text="Where:" TextWrapping="Wrap"/>
    					<TextBlock x:Name="textBlockLocationName" Text="{ Binding Where, Mode=OneWay }"    FontSize="10.667" Margin="0,0,44,0" TextWrapping="Wrap" />
    					<TextBlock x:Name="textBlockStreetAddress1" Text="{ Binding AddressLine1, Mode=OneWay }"    Height="20" FontSize="12" Margin="0" />
    					<TextBlock x:Name="textBlockStreetAddress2" Text="{ Binding AddressLine2, Mode=OneWay }"    Height="20" Margin="0"  />
    				</StackPanel>
    			</StackPanel>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="5,10,0,10">
                    <Image x:Name="TwitIcon" Source="../../Images/twitter.small.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand" />
                    <Image x:Name="RssIcon"  Source="../../Images/rss.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand" />
                    <Image x:Name="FcbkIcon" Source="../../Images/Facebook.small.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand"  />
                    <Image x:Name="MeetingIcon" Source="../../Images/Outlook.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand" />
                </StackPanel>

            </StackPanel>
    	</Border>
    </DataTemplate>
    
    <DataTemplate x:Key="DataTemplateLatestEventStyle2">    
        <Grid >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.021*"/>
                <ColumnDefinition Width="0.656*"/>
                <ColumnDefinition Width="0.323*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="20" />
                <RowDefinition Height="0.033*" />
                <RowDefinition Height="0.007*" />
                <RowDefinition Height="0.832*" />
                <RowDefinition Height="0.111*" />
                <RowDefinition Height="0.017*" />
            </Grid.RowDefinitions>

            <Rectangle Opacity="1" RadiusX="10" RadiusY="10" Grid.Row="1" Grid.RowSpan="5" Grid.ColumnSpan="3" Fill="White" >
                <Rectangle.Effect>
                    <DropShadowEffect Color="#FF0D317D" Opacity="0.4" Direction="90" ShadowDepth="0" BlurRadius="8"/>
                </Rectangle.Effect>
            </Rectangle>

            <StackPanel x:Name="stackPanelMeetingDetails" HorizontalAlignment="Left" Margin="15,0,0,15" Grid.Row="1" Grid.ColumnSpan="3" Grid.RowSpan="6" >
                <Image Source="{ Binding LogoImage, Mode=OneWay }" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="416" Height="128" Grid.Row="1"/>
                <StackPanel Orientation="Vertical" Width="450">
                    <TextBlock x:Name="textBlockTopicTitle" Text="{ Binding TopicTitle, Mode=OneWay }" FontSize="14.667" Margin="0,0,-28,0" />
                    <TextBlock x:Name="textBlockTopicDescription" Text="{ Binding TopicDescription, Mode=OneWay }" TextWrapping="Wrap" Margin="1,0,-1,0" FontSize="10" />
                </StackPanel>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="75" />
                        <ColumnDefinition Width="200" />
                        <ColumnDefinition Width="200" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="When:"                          Height="25" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" FontSize="18" Width="86" ></TextBlock>
                    <TextBlock Text="{ Binding When, Mode=OneWay }"  Height="20" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" FontSize="12" Width="200" Margin="0,5,0,0"/>
                    <TextBlock Text="Where:"                          Height="25" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" FontSize="18" Width="86" ></TextBlock>
                    <TextBlock Text="{ Binding AddressLine1, Mode=OneWay }"    Height="20" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" FontSize="12" Margin="0,5,0,0"/>
                    <TextBlock Text="{ Binding AddressLine2, Mode=OneWay }"          Height="20" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" FontSize="12" />
                    <Button Content="Show Map to Event" x:Name="buttonShowMap" Margin="0,5,5,0" Grid.Row="3" Grid.Column="1" />

                    <StackPanel Orientation="Vertical" Grid.Column="2" Grid.RowSpan="4" HorizontalAlignment="Right">                       
                         <Image x:Name="TwitIcon" Source="../../Images/twitter.small.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand" />
                        <Image x:Name="RssIcon"  Source="../../Images/rss.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand" />
                        <Image x:Name="FcbkIcon" Source="../../Images/Facebook.small.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand"  />
                        <Image x:Name="MeetingIcon" Source="../../Images/Outlook.png" Height="20" Width="20" Margin="5,0,5,5" Cursor="Hand" />
                    </StackPanel>

                </Grid>

            </StackPanel>
        </Grid>
    </DataTemplate>

</ResourceDictionary>